<%@ include file="/common/taglibs.jspf"%>
<%@ page import="org.springframework.security.web.WebAttributes"%>


<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<head>
<base href="<%=basePath%>">
<%@ include file="/common/meta.jspf"%>

<style type="text/css">
body {
	padding-top: 40px;
	padding-left: 250px;
	padding-bottom: 40px;
	background-color: #E6E6E6;
	/*
	background-image: url("${ctx}/resources/images/login/login-backgroup.jpg");
	*/
}
.form-signin {
	max-width: 300px;
	padding: 19px 29px 29px;
	margin: 0 auto 20px;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.form-signin .form-signin-heading,.form-signin .checkbox {
	margin-bottom: 10px;
}
.form-signin input[type="text"],.form-signin input[type="password"] {
	font-size: 16px;
	height: auto;
	margin-bottom: 15px;
	padding: 7px 9px;
}
</style>
</head>

<body>
	<%-- <span style="color: red"><%=session.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION)%></span> --%>
	<div class="container">
		<form action="j_spring_security_check" method="post" class="form-signin">
			<input name="j_username" type="text" placeholder="Account" class="input-block-level"/> 
			<input name="j_password" type="password" placeholder="Password" class="input-block-level"/> 
			<label class="checkbox"> 
				<input name="_spring_security_remember_me" type="checkbox" value="true" > Remember me
			</label>
			<button class="btn btn-inverse" type="submit">Sign in</button><br>
			<a class="pull-right" href="#">Forgot Password?</a>
		</form>
	</div>
	
	<!-- register
	<div class="container">
		<form action="/system/register.do" method="post" class="form-signin">
			<input name="fullName" type="text" placeholder="Full name" class="input-block-level"/> 
			<input name="userName" type="text" placeholder="Account" class="input-block-level"/> 
			<input name="password" type="password" placeholder="Password" class="input-block-level"/> 
			<button class="btn btn-warning" type="submit">Sign up for dazzle</button><br>
		</form>
	</div>
	 -->
	 
	<%@ include file="/common/scripts.jspf"%>
</body>
</html>
